import Taro, { Component } from '@tarojs/taro'
import {connect} from '@tarojs/redux'
import { View, Text, Input, Picker } from '@tarojs/components'
import './index.less'
import _pickBy from 'lodash/pickBy'
import _startsWith from 'lodash/startsWith'
import { AtTabBar, AtFab, AtList, AtListItem, AtNoticebar } from 'taro-ui'

@connect(({ message, loading }) => ({
    message,
    loading
}))

export default class Message extends Component {

    config = {
        navigationBarTitleText: '信息发布'
    }
    
    constructor(props){
        super(props)
        this.state={
            current: 0
        }
    }

    componentWillMount () {}

    componentDidMount () { 
        const { dispatch } = this.props;
        // 获取列表数据
        dispatch({type: 'message/loadList'})
    }

    componentWillUnmount () {}

    componentDidShow () {}
                                                                                           
    componentDidHide () {}

    render () {
        const {
            message, dispatch
        } = this.props;
        const { current } = this.state;
        // const { 
        //     listData
        // } = message;
        const updateState = (obj) => {
            dispatch({
                type : 'message/updateState',
                payload : {
                    ...obj
                }
            })
        }

        return (
            <View className='message'>
                暂未开放
            </View>
        )
    }
}
